/* --- 全局重置和暗黑模式 --- */
:root {
    /* 定义颜色变量 */
    --bg-color: #1a1a1a;
    --bg-color-light: #2c2c2c;
    --text-color: #e0e0e0;
    --text-color-muted: #888888;
    --accent-color: #007bff;
    --log-bg: #101010;
    --border-color: #444;
    --danger-color: #ff4d4d;
    --danger-color-hover: #ff8080;
}

html {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
}

/* --- 整体布局 --- */
#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- 内容区域 (日志) --- */
.content {
    flex-grow: 1;
    padding: 20px 20px 10px 20px; /* (已修改) 缩小底部内边距 */
    overflow: hidden;
    display: flex;
}

#log-view {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    resize: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--log-bg);
    color: var(--text-color-muted);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    padding: 15px;
    pointer-events: none;
    caret-color: transparent;
}

/* (新) --- 进度条区域 --- */
.progress-area {
    flex-shrink: 0; /* 不收缩 */
    padding: 0px 20px 10px 20px; /* 顶部/左右/底部 内边距 */
}

#progress-text {
    font-size: 12px;
    color: var(--text-color-muted);
    margin: 0 0 8px 0;
    text-align: center;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--bg-color-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

#progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    /* (已修改) 动画在 JS 中控制，这里设置一个默认值 */
    transition: width 0.5s linear;
}

/* --- 底部 (作者信息) --- */
.footer {
    flex-shrink: 0;
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color-light);
    --wails-draggable: drag;
    text-align: center;
}

#author-info {
    margin: 0;
    font-size: 12px;
    color: var(--text-color-muted);
}

#log-path {
    margin: 4px 0 0 0;
    font-size: 11px;
    color: #666;
    user-select: text;
    cursor: default;
}

#contact-link {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--danger-color);
    text-decoration: none;
    transition: color 0.2s ease;
    --wails-draggable: no-drag;
    cursor: pointer;
}
#contact-link:hover {
    color: var(--danger-color-hover);
    text-decoration: underline;
}

/* --- 美化滚动条 --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #777;
}